/**
 * @program: Learning
 * @description:
 * @Company: 终生学习
 * @author: peter.wei
 * @create: 2020-08-14 11:14
 **/
public class TestFunction {
    public static void main(String[] args) throws Exception {
        String str = "测试";
        testFun(str, () -> {
            System.out.println("函数接口执行222");
            testFun("111", () -> System.out.println("333"));
        });
    }

    public static void testFun(String str, FuctionDemo fuctionDemo) throws Exception {
        System.out.println("方法执行1111" + str);
        fuctionDemo.doSth();
    }
}